package com.mzj.saas.mservice.backlog.repository;

import com.mzj.saas.mservice.backlog.entity.BacklogItemContractBill;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface BacklogItemContractBillRepository extends PagingAndSortingRepository<BacklogItemContractBill, Long>, JpaSpecificationExecutor<BacklogItemContractBill> {
    List<BacklogItemContractBill> findByContractNumber(String contractNumber);

    BacklogItemContractBill findByBacklogItemId(Long backlogItemId);

    List<BacklogItemContractBill> findByRentBillIdIn( List<Long> rentBillId);

    List<BacklogItemContractBill> findByRentBillIdInAndDepositBillIdIn( List<Long> rentBillId,List<Long> depositBillId);
}
